using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Alter Diagram Properties</para>
    /// <para>Set the name, the location and the access rights of a network diagram</para>
    /// <para>设置网络逻辑示意图的名称、位置和访问权限</para>
    /// </summary>    
    [DisplayName("Alter Diagram Properties")]
    public class AlterDiagramProperties : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AlterDiagramProperties()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_diagram_layer">
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AlterDiagramProperties(object _in_network_diagram_layer)
        {
            this._in_network_diagram_layer = _in_network_diagram_layer;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Alter Diagram Properties";

        public override string CallName => "un.AlterDiagramProperties";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_network_diagram_layer, _out_name, _access_right_type.GetGPValue(), _tags, _out_network_diagram_layer];

        /// <summary>
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Network Diagram Name</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Network Diagram Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_name { get; set; } = null;


        /// <summary>
        /// <para>Network Diagram Access Rights</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Network Diagram Access Rights")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _access_right_type_value _access_right_type { get; set; } = _access_right_type_value._PUBLIC;

        public enum _access_right_type_value
        {
            /// <summary>
            /// <para>PUBLIC</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PUBLIC")]
            [GPEnumValue("PUBLIC")]
            _PUBLIC,

            /// <summary>
            /// <para>PROTECTED</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PROTECTED")]
            [GPEnumValue("PROTECTED")]
            _PROTECTED,

            /// <summary>
            /// <para>PRIVATE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRIVATE")]
            [GPEnumValue("PRIVATE")]
            _PRIVATE,

        }

        /// <summary>
        /// <para>Tags (optional)</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tags (optional)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _tags { get; set; } = null;


        /// <summary>
        /// <para>Altered Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Altered Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_network_diagram_layer { get; set; }


        public AlterDiagramProperties SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}